import request from '@/utils/request';

// 查询房屋巡查列表
export function listPatrol(query) {
  return request({
    url: '/house/patrol/list',
    method: 'get',
    params: query
  });
}

// 查询房屋巡查详细
export function getPatrol(id) {
  return request({
    url: '/house/patrol/' + id,
    method: 'get'
  });
}

// 新增房屋巡查
export function addPatrol(data) {
  return request({
    url: '/house/patrol',
    method: 'post',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    data: data
  });
}

// 修改房屋巡查
export function updatePatrol(data) {
  return request({
    url: '/house/patrol',
    method: 'put',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    data: data
  });
}

// 删除房屋巡查
export function delPatrol(id) {
  return request({
    url: '/house/patrol/' + id,
    method: 'delete'
  });
} 